<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
<script>
	function validar (){
		var x = document.f1.txtNombre.value;
		if(x==""){
			alert ("Ingrese Nombre");
			return false
		}
		return true;
		}

</script>
</head>
<body>

	<form name = "f1" action = "ProcesarServlet" method = "post" onsubmit = "return validar()">;
		<table>
			<tr>
				<td>Nombre</td>
				<td style="width: 99px; "><input name = "txtNombre"  ></td>
			</tr>
			<tr>
				<td>Calve</td>
				<td><input type="password"></td>
			</tr>
			<tr>
				<td>Cell</td>
				<td><input type="submit" value="Guardar"></td>
			</tr>
		</table>
	</form>
</body>
</html>